package org.evej.apiparser.model.account;

import org.evej.apiparser.model.ApiDocumentModel;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class ApiCharacters implements ApiDocumentModel {

    private static final long serialVersionUID = 3672525738L;

    private final List<ApiCharacter> characters;

    public ApiCharacters(List<ApiCharacter> characters) {
        this.characters = characters;
    }

    public List<ApiCharacter> getCharacters() {
        return this.characters;
    }

    public static class Builder {

        private List<ApiCharacter> characters = new ArrayList();

        public Builder() { }

        public Builder addCharacter(ApiCharacter character) {
            characters.add(character);
            return this;
        }

        public ApiCharacters build() {
            return new ApiCharacters(Collections.unmodifiableList(characters));
        }
    }

}
